import Vue from 'vue'
import VueRouter from 'vue-router'
import index from '../views/index.vue'
import cif from '../views/cif.vue'
import gouwuche from '../views/gouwuche.vue'
import iechong from '../views/iechong.vue'
import sousuo from "../components/jingxuan/sousuo.vue"
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'index',
    component: index
  },
  {
    path: '/cif',
    // name: 'cif',
    component: cif,
    redirect: { name: "Sidebar" },

    children: [
      {
        path: 'Sidebar',
        name: 'Sidebar',
        component: () => import(/* webpackChunkName: "Sidebar" */ "../components/cifs/Sidebar.vue"),
        // redirect:{name:"zlandrm"},
        
      },
      {
        path: 'pinpai',
        name: 'pinpai',
        component: () => import(/* webpackChunkName: "pinpai" */ "../components/cifs/pinpai.vue"),
        // redirect:{name:"zlandrm"},
        
      }
    ]
  },
  {
    path: '/glsplb',
    name: 'glsplb',
    component: () => import(/* webpackChunkName: "glsplb" */ '../components/cifs/glsplb.vue')
  },
  {
    path: '/spInfo',
    name: 'spInfo',
    component: () => import(/* webpackChunkName: "spInfo" */ '../components/pub/spInfo.vue')
  },
  {
    path: '/gouwuche',
    name: 'gouwuche',
    component: gouwuche,
  },
  {
    path: '/rmpp',
    name: 'rmpp',
    component: () => import(/* webpackChunkName: "rmpp" */ '../components/cifs/rmpp.vue')
  },
  {
    path: '/iechong',
    name: 'iechong',
    component: iechong
  },
  {
    path: '/sousuo',
    name: 'sousuo',
    component: sousuo,
  },
  {
    path: '/xiaoms',
    name: 'xiaoms',
    component: () => import(/* webpackChunkName: "xiaoms" */ '../views/xiaoms.vue')
  },
]

const router = new VueRouter({
  routes
})

export default router
